import request from "@/utils/http"

// 获取banner
export const getBannerAPI = (params = {}) => {
  const {distributionSite = '1'} = params
  return request.get('/home/banner', {
    params: {
      distributionSite
    }
  })
}
// 获取新鲜好物
export const getNewAPI = () => {
  return request.get('/home/new')
}

// 获取人气推荐
export const getHotAPI = () => {
  return request.get('/home/hot')
}

// 获取所有商品模块
export const getGoodsAPI = () => {
  return request.get('/home/goods')
}